<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/10
 * Time: 10:12
 */

namespace app\admin\controller;


use app\admin\model\CouponTickets as CouponTicketsModel;
use think\Config;

class CouponTicketsController extends BaseController
{
    public function index()
    {
        $tickets = CouponTicketsModel::with('user,activity,couponCategory')->order(['id'=>'asc'])->paginate(15);
        $this->assign([
            'ticketCate' => config('setting.tickets_category'),
            'tickets' => $tickets,
        ]);
        return $this->fetch();
    }
}